/**
 * 存储localStorage
 */
export const setStore = (name, content) => {
    if (!name) {
      return
    }
    const stringContent = typeof content === 'string' ? content : JSON.stringify(content)
    window.localStorage.setItem(name, stringContent)
  }
  
  /**
   * 存储sessionStorage
   */
  export const setStoreSe = (name, content) => {
    if (!name) {
      return
    }
    const stringContent = typeof content === 'string' ? content : JSON.stringify(content)
    window.sessionStorage.setItem(name, stringContent)
  }
  
  /**
   * 获取localStorage
   */
  export const getStore = (name) => {
    if (!name) {
      return null
    } else {
      return window.localStorage.getItem(name)
    }
  }
  
  /**
   * 获取sessionStorage
   */
  export const getStoreSe = (name) => {
    if (!name) {
      return null
    } else {
      return window.sessionStorage.getItem(name)
    }
  }
  
  /**
   * 删除localStorage
   */
  export const removeStore = (name) => {
    if (!name) {
      return
    }
    window.localStorage.removeItem(name)
  }
  
  /**
   * 获取sessionStorage
   */
  export const removeStoreSe = (name) => {
    if (!name) {
      return
    }
    window.sessionStorage.removeItem(name)
  }
  